3.322 \(\int \frac{(e+f x)^2 \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx\)

Optimal. Leaf size=234 \[ \frac{2 f^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{b d^3 \sqrt{a^2+b^2}}-\frac{2 f^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )}{b d^3 \sqrt{a^2+b^2}}+\frac{2 f (e+f x) \log \left (\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}+1\right )}{b d^2 \sqrt{a^2+b^2}}-\frac{2 f (e+f x) \log \left (\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}+1\right )}{b d^2 \sqrt{a^2+b^2}}-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))} \]

[Out]

(2*f*(e + f*x)*Log[1 + (b*E^(c + d*x))/(a - Sqrt[a^2 + b^2])])/(b*Sqrt[a^2 + b^2]*d^2) - (2*f*(e + f*x)*Log[1
+ (b*E^(c + d*x))/(a + Sqrt[a^2 + b^2])])/(b*Sqrt[a^2 + b^2]*d^2) + (2*f^2*PolyLog[2, -((b*E^(c + d*x))/(a - S
qrt[a^2 + b^2]))])/(b*Sqrt[a^2 + b^2]*d^3) - (2*f^2*PolyLog[2, -((b*E^(c + d*x))/(a + Sqrt[a^2 + b^2]))])/(b*S
qrt[a^2 + b^2]*d^3) - (e + f*x)^2/(b*d*(a + b*Sinh[c + d*x]))

________________________________________________________________________________________

Rubi [A]  time = 0.440379, antiderivative size = 234, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {5464, 3322, 2264, 2190, 2279, 2391} \[ \frac{2 f^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{b d^3 \sqrt{a^2+b^2}}-\frac{2 f^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )}{b d^3 \sqrt{a^2+b^2}}+\frac{2 f (e+f x) \log \left (\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}+1\right )}{b d^2 \sqrt{a^2+b^2}}-\frac{2 f (e+f x) \log \left (\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}+1\right )}{b d^2 \sqrt{a^2+b^2}}-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))} \]

Antiderivative was successfully verified.

[In]

Int[((e + f*x)^2*Cosh[c + d*x])/(a + b*Sinh[c + d*x])^2,x]

[Out]

(2*f*(e + f*x)*Log[1 + (b*E^(c + d*x))/(a - Sqrt[a^2 + b^2])])/(b*Sqrt[a^2 + b^2]*d^2) - (2*f*(e + f*x)*Log[1
+ (b*E^(c + d*x))/(a + Sqrt[a^2 + b^2])])/(b*Sqrt[a^2 + b^2]*d^2) + (2*f^2*PolyLog[2, -((b*E^(c + d*x))/(a - S
qrt[a^2 + b^2]))])/(b*Sqrt[a^2 + b^2]*d^3) - (2*f^2*PolyLog[2, -((b*E^(c + d*x))/(a + Sqrt[a^2 + b^2]))])/(b*S
qrt[a^2 + b^2]*d^3) - (e + f*x)^2/(b*d*(a + b*Sinh[c + d*x]))

Rule 5464

Int[Cosh[(c_.) + (d_.)*(x_)]*((e_.) + (f_.)*(x_))^(m_.)*((a_) + (b_.)*Sinh[(c_.) + (d_.)*(x_)])^(n_.), x_Symbo
l] :> Simp[((e + f*x)^m*(a + b*Sinh[c + d*x])^(n + 1))/(b*d*(n + 1)), x] - Dist[(f*m)/(b*d*(n + 1)), Int[(e +
f*x)^(m - 1)*(a + b*Sinh[c + d*x])^(n + 1), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && IGtQ[m, 0] && NeQ[n,
-1]

Rule 3322

Int[((c_.) + (d_.)*(x_))^(m_.)/((a_) + (b_.)*sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]), x_Symbol] :> Dist[2,
Int[((c + d*x)^m*E^(-(I*e) + f*fz*x))/(-(I*b) + 2*a*E^(-(I*e) + f*fz*x) + I*b*E^(2*(-(I*e) + f*fz*x))), x], x]
 /; FreeQ[{a, b, c, d, e, f, fz}, x] && NeQ[a^2 - b^2, 0] && IGtQ[m, 0]

Rule 2264

Int[((F_)^(u_)*((f_.) + (g_.)*(x_))^(m_.))/((a_.) + (b_.)*(F_)^(u_) + (c_.)*(F_)^(v_)), x_Symbol] :> With[{q =
 Rt[b^2 - 4*a*c, 2]}, Dist[(2*c)/q, Int[((f + g*x)^m*F^u)/(b - q + 2*c*F^u), x], x] - Dist[(2*c)/q, Int[((f +
g*x)^m*F^u)/(b + q + 2*c*F^u), x], x]] /; FreeQ[{F, a, b, c, f, g}, x] && EqQ[v, 2*u] && LinearQ[u, x] && NeQ[
b^2 - 4*a*c, 0] && IGtQ[m, 0]

Rule 2190

Int[(((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.))/((a_) + (b_.)*((F_)^((g_.)*((e_.) +
 (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp[((c + d*x)^m*Log[1 + (b*(F^(g*(e + f*x)))^n)/a])/(b*f*g*n*Log[F]), x]
 - Dist[(d*m)/(b*f*g*n*Log[F]), Int[(c + d*x)^(m - 1)*Log[1 + (b*(F^(g*(e + f*x)))^n)/a], x], x] /; FreeQ[{F,
a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]

Rule 2279

Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int
[Log[a + b*x]/x, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rubi steps

\begin{align*} \int \frac{(e+f x)^2 \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx &=-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))}+\frac{(2 f) \int \frac{e+f x}{a+b \sinh (c+d x)} \, dx}{b d}\\ &=-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))}+\frac{(4 f) \int \frac{e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{b d}\\ &=-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))}+\frac{(4 f) \int \frac{e^{c+d x} (e+f x)}{2 a-2 \sqrt{a^2+b^2}+2 b e^{c+d x}} \, dx}{\sqrt{a^2+b^2} d}-\frac{(4 f) \int \frac{e^{c+d x} (e+f x)}{2 a+2 \sqrt{a^2+b^2}+2 b e^{c+d x}} \, dx}{\sqrt{a^2+b^2} d}\\ &=\frac{2 f (e+f x) \log \left (1+\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{b \sqrt{a^2+b^2} d^2}-\frac{2 f (e+f x) \log \left (1+\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{b \sqrt{a^2+b^2} d^2}-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))}-\frac{\left (2 f^2\right ) \int \log \left (1+\frac{2 b e^{c+d x}}{2 a-2 \sqrt{a^2+b^2}}\right ) \, dx}{b \sqrt{a^2+b^2} d^2}+\frac{\left (2 f^2\right ) \int \log \left (1+\frac{2 b e^{c+d x}}{2 a+2 \sqrt{a^2+b^2}}\right ) \, dx}{b \sqrt{a^2+b^2} d^2}\\ &=\frac{2 f (e+f x) \log \left (1+\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{b \sqrt{a^2+b^2} d^2}-\frac{2 f (e+f x) \log \left (1+\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{b \sqrt{a^2+b^2} d^2}-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))}-\frac{\left (2 f^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 b x}{2 a-2 \sqrt{a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b \sqrt{a^2+b^2} d^3}+\frac{\left (2 f^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 b x}{2 a+2 \sqrt{a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b \sqrt{a^2+b^2} d^3}\\ &=\frac{2 f (e+f x) \log \left (1+\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{b \sqrt{a^2+b^2} d^2}-\frac{2 f (e+f x) \log \left (1+\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{b \sqrt{a^2+b^2} d^2}+\frac{2 f^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{b \sqrt{a^2+b^2} d^3}-\frac{2 f^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{b \sqrt{a^2+b^2} d^3}-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))}\\ \end{align*}

Mathematica [A]  time = 1.37844, size = 175, normalized size = 0.75 \[ \frac{2 f \left (f \text{PolyLog}\left (2,\frac{b e^{c+d x}}{\sqrt{a^2+b^2}-a}\right )-f \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )+d (e+f x) \left (\log \left (\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}+1\right )-\log \left (\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}+1\right )\right )\right )}{b d^3 \sqrt{a^2+b^2}}-\frac{(e+f x)^2}{b d (a+b \sinh (c+d x))} \]

Antiderivative was successfully verified.

[In]

Integrate[((e + f*x)^2*Cosh[c + d*x])/(a + b*Sinh[c + d*x])^2,x]

[Out]

(2*f*(d*(e + f*x)*(Log[1 + (b*E^(c + d*x))/(a - Sqrt[a^2 + b^2])] - Log[1 + (b*E^(c + d*x))/(a + Sqrt[a^2 + b^
2])]) + f*PolyLog[2, (b*E^(c + d*x))/(-a + Sqrt[a^2 + b^2])] - f*PolyLog[2, -((b*E^(c + d*x))/(a + Sqrt[a^2 +
b^2]))]))/(b*Sqrt[a^2 + b^2]*d^3) - (e + f*x)^2/(b*d*(a + b*Sinh[c + d*x]))

________________________________________________________________________________________

Maple [B]  time = 0.19, size = 491, normalized size = 2.1 \begin{align*} -2\,{\frac{ \left ({x}^{2}{f}^{2}+2\,efx+{e}^{2} \right ){{\rm e}^{dx+c}}}{bd \left ( b{{\rm e}^{2\,dx+2\,c}}+2\,a{{\rm e}^{dx+c}}-b \right ) }}-4\,{\frac{ef}{{d}^{2}b\sqrt{{a}^{2}+{b}^{2}}}{\it Artanh} \left ( 1/2\,{\frac{2\,b{{\rm e}^{dx+c}}+2\,a}{\sqrt{{a}^{2}+{b}^{2}}}} \right ) }+2\,{\frac{{f}^{2}x}{{d}^{2}b\sqrt{{a}^{2}+{b}^{2}}}\ln \left ({\frac{-b{{\rm e}^{dx+c}}+\sqrt{{a}^{2}+{b}^{2}}-a}{-a+\sqrt{{a}^{2}+{b}^{2}}}} \right ) }+2\,{\frac{{f}^{2}c}{b{d}^{3}\sqrt{{a}^{2}+{b}^{2}}}\ln \left ({\frac{-b{{\rm e}^{dx+c}}+\sqrt{{a}^{2}+{b}^{2}}-a}{-a+\sqrt{{a}^{2}+{b}^{2}}}} \right ) }-2\,{\frac{{f}^{2}x}{{d}^{2}b\sqrt{{a}^{2}+{b}^{2}}}\ln \left ({\frac{b{{\rm e}^{dx+c}}+\sqrt{{a}^{2}+{b}^{2}}+a}{a+\sqrt{{a}^{2}+{b}^{2}}}} \right ) }-2\,{\frac{{f}^{2}c}{b{d}^{3}\sqrt{{a}^{2}+{b}^{2}}}\ln \left ({\frac{b{{\rm e}^{dx+c}}+\sqrt{{a}^{2}+{b}^{2}}+a}{a+\sqrt{{a}^{2}+{b}^{2}}}} \right ) }+2\,{\frac{{f}^{2}}{b{d}^{3}\sqrt{{a}^{2}+{b}^{2}}}{\it dilog} \left ({\frac{-b{{\rm e}^{dx+c}}+\sqrt{{a}^{2}+{b}^{2}}-a}{-a+\sqrt{{a}^{2}+{b}^{2}}}} \right ) }-2\,{\frac{{f}^{2}}{b{d}^{3}\sqrt{{a}^{2}+{b}^{2}}}{\it dilog} \left ({\frac{b{{\rm e}^{dx+c}}+\sqrt{{a}^{2}+{b}^{2}}+a}{a+\sqrt{{a}^{2}+{b}^{2}}}} \right ) }+4\,{\frac{{f}^{2}c}{b{d}^{3}\sqrt{{a}^{2}+{b}^{2}}}{\it Artanh} \left ( 1/2\,{\frac{2\,b{{\rm e}^{dx+c}}+2\,a}{\sqrt{{a}^{2}+{b}^{2}}}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x+e)^2*cosh(d*x+c)/(a+b*sinh(d*x+c))^2,x)

[Out]

-2*(f^2*x^2+2*e*f*x+e^2)/b/d*exp(d*x+c)/(b*exp(2*d*x+2*c)+2*a*exp(d*x+c)-b)-4*f/b/d^2*e/(a^2+b^2)^(1/2)*arctan
h(1/2*(2*b*exp(d*x+c)+2*a)/(a^2+b^2)^(1/2))+2*f^2/b/d^2/(a^2+b^2)^(1/2)*ln((-b*exp(d*x+c)+(a^2+b^2)^(1/2)-a)/(
-a+(a^2+b^2)^(1/2)))*x+2*f^2/b/d^3/(a^2+b^2)^(1/2)*ln((-b*exp(d*x+c)+(a^2+b^2)^(1/2)-a)/(-a+(a^2+b^2)^(1/2)))*
c-2*f^2/b/d^2/(a^2+b^2)^(1/2)*ln((b*exp(d*x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^2+b^2)^(1/2)))*x-2*f^2/b/d^3/(a^2+b^2)
^(1/2)*ln((b*exp(d*x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^2+b^2)^(1/2)))*c+2*f^2/b/d^3/(a^2+b^2)^(1/2)*dilog((-b*exp(d*
x+c)+(a^2+b^2)^(1/2)-a)/(-a+(a^2+b^2)^(1/2)))-2*f^2/b/d^3/(a^2+b^2)^(1/2)*dilog((b*exp(d*x+c)+(a^2+b^2)^(1/2)+
a)/(a+(a^2+b^2)^(1/2)))+4*f^2/b/d^3*c/(a^2+b^2)^(1/2)*arctanh(1/2*(2*b*exp(d*x+c)+2*a)/(a^2+b^2)^(1/2))

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)^2*cosh(d*x+c)/(a+b*sinh(d*x+c))^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [B]  time = 2.40127, size = 3195, normalized size = 13.65 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)^2*cosh(d*x+c)/(a+b*sinh(d*x+c))^2,x, algorithm="fricas")

[Out]

2*((b^2*f^2*cosh(d*x + c)^2 + b^2*f^2*sinh(d*x + c)^2 + 2*a*b*f^2*cosh(d*x + c) - b^2*f^2 + 2*(b^2*f^2*cosh(d*
x + c) + a*b*f^2)*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2)*dilog((a*cosh(d*x + c) + a*sinh(d*x + c) + (b*cosh(d*x
+ c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b + 1) - (b^2*f^2*cosh(d*x + c)^2 + b^2*f^2*sinh(d*x + c)^2
 + 2*a*b*f^2*cosh(d*x + c) - b^2*f^2 + 2*(b^2*f^2*cosh(d*x + c) + a*b*f^2)*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2
)*dilog((a*cosh(d*x + c) + a*sinh(d*x + c) - (b*cosh(d*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b
+ 1) + (b^2*d*e*f - b^2*c*f^2 - (b^2*d*e*f - b^2*c*f^2)*cosh(d*x + c)^2 - (b^2*d*e*f - b^2*c*f^2)*sinh(d*x + c
)^2 - 2*(a*b*d*e*f - a*b*c*f^2)*cosh(d*x + c) - 2*(a*b*d*e*f - a*b*c*f^2 + (b^2*d*e*f - b^2*c*f^2)*cosh(d*x +
c))*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2)*log(2*b*cosh(d*x + c) + 2*b*sinh(d*x + c) + 2*b*sqrt((a^2 + b^2)/b^2)
 + 2*a) - (b^2*d*e*f - b^2*c*f^2 - (b^2*d*e*f - b^2*c*f^2)*cosh(d*x + c)^2 - (b^2*d*e*f - b^2*c*f^2)*sinh(d*x
+ c)^2 - 2*(a*b*d*e*f - a*b*c*f^2)*cosh(d*x + c) - 2*(a*b*d*e*f - a*b*c*f^2 + (b^2*d*e*f - b^2*c*f^2)*cosh(d*x
 + c))*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2)*log(2*b*cosh(d*x + c) + 2*b*sinh(d*x + c) - 2*b*sqrt((a^2 + b^2)/b
^2) + 2*a) - (b^2*d*f^2*x + b^2*c*f^2 - (b^2*d*f^2*x + b^2*c*f^2)*cosh(d*x + c)^2 - (b^2*d*f^2*x + b^2*c*f^2)*
sinh(d*x + c)^2 - 2*(a*b*d*f^2*x + a*b*c*f^2)*cosh(d*x + c) - 2*(a*b*d*f^2*x + a*b*c*f^2 + (b^2*d*f^2*x + b^2*
c*f^2)*cosh(d*x + c))*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2)*log(-(a*cosh(d*x + c) + a*sinh(d*x + c) + (b*cosh(d
*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b) + (b^2*d*f^2*x + b^2*c*f^2 - (b^2*d*f^2*x + b^2*c*f^2
)*cosh(d*x + c)^2 - (b^2*d*f^2*x + b^2*c*f^2)*sinh(d*x + c)^2 - 2*(a*b*d*f^2*x + a*b*c*f^2)*cosh(d*x + c) - 2*
(a*b*d*f^2*x + a*b*c*f^2 + (b^2*d*f^2*x + b^2*c*f^2)*cosh(d*x + c))*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2)*log(-
(a*cosh(d*x + c) + a*sinh(d*x + c) - (b*cosh(d*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b) - ((a^2
 + b^2)*d^2*f^2*x^2 + 2*(a^2 + b^2)*d^2*e*f*x + (a^2 + b^2)*d^2*e^2)*cosh(d*x + c) - ((a^2 + b^2)*d^2*f^2*x^2
+ 2*(a^2 + b^2)*d^2*e*f*x + (a^2 + b^2)*d^2*e^2)*sinh(d*x + c))/((a^2*b^2 + b^4)*d^3*cosh(d*x + c)^2 + (a^2*b^
2 + b^4)*d^3*sinh(d*x + c)^2 + 2*(a^3*b + a*b^3)*d^3*cosh(d*x + c) - (a^2*b^2 + b^4)*d^3 + 2*((a^2*b^2 + b^4)*
d^3*cosh(d*x + c) + (a^3*b + a*b^3)*d^3)*sinh(d*x + c))

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)**2*cosh(d*x+c)/(a+b*sinh(d*x+c))**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (f x + e\right )}^{2} \cosh \left (d x + c\right )}{{\left (b \sinh \left (d x + c\right ) + a\right )}^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)^2*cosh(d*x+c)/(a+b*sinh(d*x+c))^2,x, algorithm="giac")

[Out]

integrate((f*x + e)^2*cosh(d*x + c)/(b*sinh(d*x + c) + a)^2, x)